/*
 *	This file is part of Lounge-Cast.
 *
 *  Author:  	Markus Moormann
 *	E-mail:  	mmoorman@uni-osnabrueck.de
 *	Copyright:	University of Osnabrueck (Zentrum Virtuos)
 * 	Website:	www.uni-osnabrueck.de
 *	Date:		16.02.2011
 *
 *	Lounge-Cast is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *	Lounge-Cast is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Lounge-Cast.  If not, see <http://www.gnu.org/licenses/>.
 */
package multimedia.model
{
	import multimedia.view.author;
	import multimedia.view.authorPanel;
	import multimedia.view.components.FeedComponent;
	import multimedia.view.components.FeedContentView;
	import multimedia.view.components.MediaComponent;
	import multimedia.view.components.MediaPreview;
	import multimedia.view.components.SlideComponent;
	import multimedia.view.components.TextComponent;
	import multimedia.view.components.VideoComponent;
	import multimedia.view.editor;
	import multimedia.view.login;
	import multimedia.view.userManagement;
	
	import mx.containers.ViewStack;
	import mx.controls.Alert;
	
	public class ViewLocator
	{
		
		private static var instance:ViewLocator
		
		public function ViewLocator()
		{
			if(instance != null)
			{
				Alert.show("Only one ViewLocator should be initiated");
			}
		}
		
		public static function getInstance():ViewLocator
		{
			if(instance == null)
			{
				instance = new ViewLocator();
			}
			
			return instance;
		}
		
		public var view:ViewStack;
		public var loginView:login;
		public var authorView:multimedia.view.author;
		public var editorView:editor;
		public var usermanagementView:userManagement;
		public var mediaComp:MediaComponent;
		public var videoComp:VideoComponent;
		public var slideComp:SlideComponent;
		public var textComp:TextComponent;
		public var feedComp:FeedComponent;
		public var author:authorPanel;
		public var preview:MediaPreview;
		public var feedContentView:FeedContentView;
		
	}
}